package com.zking.frame.LYK;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;

import java.util.List;


public class getFilmsrc {

	Connection conn=JDBC.getConn();
	
	public  List<String> getSrc(){
		
		String sql="select film_imgSrc from film ";
		List<String> list=new ArrayList<String>();
		Statement st=null;
		ResultSet rt=null;
		try {
			st= conn.createStatement();
			rt =st.executeQuery(sql);
			while(rt.next()){
				String src=rt.getString("film_imgSrc");
				list.add(src);
			}
			
			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		finally {
			try {
				st.close();
				rt.close();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
		}
		
		return list;
	}
}
